package com.dave.protocol.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import java.awt.*;
import java.util.HashMap;
import java.util.Map;

/**
 * @PageName com.dave.protocol.controller
 * @Description test
 * @Author 何全裕
 * @Create 2017-08-01 22:54
 * @Version 1.0
 **/
@Controller
public class TestController {
    @RequestMapping("/test")
    public ModelAndView testS(HttpServletRequest request){
        Map<String,Object> map = new HashMap<>();
        map.put("ss","hqy");
        ModelAndView view = new ModelAndView("pages/index",map);
        return view;
    }
}
